/**
 * Created by zzy on 2017/10/26.
 */
import React, {Component} from 'react';
import {
    Text,
    View,
    TouchableOpacity,
} from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons'

export default class CommonTitle extends Component{

    render(){
        let {title,navigation}=this.props;
        return <View style={{flexDirection:'row',alignItems:'center',justifyContent:'space-between',backgroundColor: 'white'}}>
            <TouchableOpacity activeOpacity={1}
                              onPress={()=>{
                                  navigation.goBack()
                              }}>
                <Ionicons name="ios-arrow-back" size={30} style={{padding:10}}/>
            </TouchableOpacity>
            <Text style={{fontSize:17}}>{title}</Text>
            <Text style={{padding:10}} onPress={()=>{}}>  </Text>
        </View>
    }
}